package dongwu

import "fmt"

type person struct {
	Name       string
	sn         string
	Age        int
	height     float32
	address    string
	xuedli     string
	level      int
	fathername string
}

type dongwu struct {
	Name   string
	Kind   string
	weight float32
}

type Cat struct {
	dongwu
	KeAi float32
}

type Cow struct {
	dongwu
	strong float32
}

type Bear struct {
	dongwu
	xiongmeng float32
}

func (bear *Bear) Jiao() {
	bear.xiongmeng = 5
	fmt.Println("熊在叫")
}

func (cat *Cat) Paobu() {
	cat.KeAi = 5
	fmt.Println("小猫在跑步")
}
func (cat Cat) Jiao() {
	fmt.Println("小猫在叫")
}
func (cat Cat) Heshui() {
	fmt.Println("小猫在喝水")
}

func (cow *Cow) Chicao() {
	cow.strong = 5
	fmt.Println("牛在吃草")
}
func (cow Cow) Jiao() {
	fmt.Println("牛在叫")
}
func (cow Cow) Heshui() {
	fmt.Println("牛在喝水")
}
